package com.yonyou.le.unattended.entity.meta;

/**
 * 车辆状态
 * @author zhangbbd
 */
public enum SelfhandStatusEnum {
	
	/**
	 * 进场发卡
	 */
    EnterOn("进场发卡","0"),
    
    /**
     * 一次计量
     */
    EnterOut("一次计量","1"),
    /**
     * 二次上磅
     */
    SecondOn("二次上磅","2"),
    /**
     * 二次计量
     */
    SecondOut("二次计量","3");
    
    private String name ;
    private String index ;
     
    private SelfhandStatusEnum( String name , String index ){
        this.name = name ;
        this.index = index ;
    }
     
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getIndex() {
        return index;
    }
    public void setIndex(String index) {
        this.index = index;
    }
    public static SelfhandStatusEnum getEnum(String index){
    	switch(index){
    	case "0":
    		return EnterOn;
    	case "1":
    		return EnterOut;
    	case "2":
    		return SecondOn;
    	case "3":
    		return SecondOut;
    	}
    	return null;
    }
}
